package models;

import java.io.Serializable;
import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.Unindexed;

@SuppressWarnings("serial")
@Cached
public class ProductModel implements Serializable {

	@Id
	private String productId = "";

	@Indexed
	private String dealId = "";

	@Unindexed
	private String dealName = "";

	@Unindexed
	private String name = "";

	@Indexed
	private int totalOrderQuantity = 0;

	@Indexed
	private int status = 1;

	public int getTotalOrderQuantity() {
		return totalOrderQuantity;
	}

	public void setTotalOrderQuantity(int totalOrderQuantity) {
		this.totalOrderQuantity = totalOrderQuantity;
	}

	public String getDealName() {
		return dealName;
	}

	public void setDealName(String dealName) {
		this.dealName = dealName;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getDealId() {
		return dealId;
	}

	public void setDealId(String dealId) {
		this.dealId = dealId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
